int __cdecl httrackengine_htmlcheck(t_hts_callbackarg *carg, httrackp *opt, char* html,int len,const char* url_address,const char* url_file) { // appelΘ α chaque fois qu'un html doit Ωtre scannΘ (utile pour la prospection mais inutile ici)
return 1;
}
int __cdecl httrackengine_chopt(t_hts_callbackarg *carg, httrackp *opt) {
strcatbuff(end_mirror_msg,LANG(LANG_F21 /*"\nSee the log file if necessary.\n\nClick OK to quit WinHTTrack.\n\nThanks for using WinHTTrack!","\nVoir le fichier log au besoin\n\nCliquez sur OK pour quitter WinHTTrack\n\nMerci d'utiliser WinHTTrack."*/));
//AfxMessageBox(s,MB_OK+MB_ICONINFORMATION);
} else {
strcpybuff(end_mirror_msg,LANG(LANG_F22 /*"The mirror is finished.\nClick OK to quit WinHTTrack.\nSee log file(s) if necessary to ensure that everything is OK.\n\nThanks for using WinHTTrack!","Le miroir est terminΘ\nCliquez sur OK pour quitter WinHTTrack\nVoir au besoin les fichiers d'audit pour vΘrifier que tout s'est bien passΘ\n\nMerci d'utiliser WinHTTrack!"*/));
//AfxMessageBox("The mirror is finished.\nClic OK to quit WinHTTrack.\nSee log file(s) if necessary to ensure that everything is OK.\n\nThanks for using WinHTTrack!",MB_OK+MB_ICONINFORMATION);
// ShellExecute(0,"open",,"","",);
}
#if USE_RAS
// erreur ras
if (connected == -1)
if ((int) strlen(connected_err) > 0)
strcpybuff(end_mirror_msg,connected_err);
#endif
{
char pathlog[HTS_URLMAXSIZE*2];
strcpybuff(pathlog,dialog0->GetPath());
Ciplog form;
if (strlen(pathlog)>0)
if ((pathlog[strlen(pathlog)-1]!='/') && (pathlog[strlen(pathlog)-1]!='\\'))
strcatbuff(pathlog,"/");
// fichier log existe ou on est tΘlΘcommandΘ par un !
if ( (fsize(fconcat(catbuff,pathlog,"hts-err.txt")))>0) {
strcatbuff(end_mirror_msg,LANG(LANG_F23 /*"\n\nTip: Click [View log file] to see warning or error messages","\n\nConseil: [Voir fichiers log] pour voir les erreurs et messages"*/));
}
}
//this_Cinfoend->m_infoend = msg;
inprogress->SendMessage(WM_USER + 4); // avertir
if (fp_debug) {
fprintf(fp_debug,"DoModal end dialog, waiting\r\n");
fflush(fp_debug);
}
/*
if (info.DoModal() == IDC_NewProject) { // relancer programme!
// copie de onnewproject() de wid1::
CWinApp* pApp = AfxGetApp();
CString name = pApp->m_pszHelpFilePath;
name=name.Left(name.GetLength()-4);
name += ".EXE";
ShellExecute(NULL,"open",name,"","",SW_RESTORE);
}
*/
if (fp_debug) {
fprintf(fp_debug,"Final info OK, leaving..\r\n");
fflush(fp_debug);
}
}
else {
}
if (argv != NULL)
freet(argv);
}
// int LANG_T(int);
// char* LANG(char* english,char* francais);
/* interface lang - lang_string="stringlang0\nstringlang1\n..laststring" */